package team.kas.anime.service;

import org.springframework.web.multipart.MultipartFile;
import team.kas.anime.pojo.Result;
import team.kas.anime.pojo.Video;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface VideoService {
    Integer getCount();

    List<Video> getAllVideos(Integer page, Integer limit);

    Result del(String id);

    Result update(String id, String value, String name);

    Result delVideos(String[] ids);

    Result upFile(MultipartFile file, HttpServletRequest request, String type);

    Result addVideo(Video video, HttpServletRequest request);

    Result searchName(String value, Integer page, Integer limit);

    //加载主页面视频信息
    Result onload(HttpServletRequest request);
    //加载视频详情页要播放的视频信息
    Result video(HttpServletRequest request, String id);
    //加载推荐视频信息
    Result likeVideo(HttpServletRequest request);
    //加载当前用户关注信息
    Result fans(HttpServletRequest request,String nickname,String id);
    //用户关注与取关
    Result follow(HttpServletRequest request, String userid, String videoUserid,Integer follow);
    //用户点赞与踩
    Result like(String videoLike,Integer like,String videoId);
    //用户收藏视频
    Result collection(String videoId, String userId);
}
